import { MockMethod } from 'vite-plugin-mock'
import { mock, Random } from 'mockjs'

const productList = mock({
  'list|100': [
    { name: '@cname', price: '@integer(1000, 9999)' }
  ]
})


export default [
  {
    url: '/api/get',
    method: 'get',
    response: ({ query }) => {
      return {
        code: 0,
        data: productList
      }
    }
  }
]